<?php
/* @var $this TugasAkhirController */
/* @var $model TugasAkhir */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'tugas-akhir-form',
	'enableAjaxValidation'=>false,
        'htmlOptions' => array(
        'enctype' => 'multipart/form-data',
    ),
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'Title'); ?>
		<?php echo $form->textField($model,'Title',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'Title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Tahun'); ?>
		<?php echo $form->textField($model,'Tahun',array('size'=>4,'maxlength'=>4)); ?>
		<?php echo $form->error($model,'Tahun'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Abstrak'); ?>
		<?php echo $form->textArea($model,'Abstrak',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'Abstrak'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'TAPath'); ?>
		<?php echo $form->textField($model,'TAPath',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'TAPath'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'PaperPath'); ?>
		<?php echo $form->textField($model,'PaperPath',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'PaperPath'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'PosterPath'); ?>
		<?php echo CHtml::activeFileField($model,'PosterPath'); ?>
		<?php echo $form->error($model,'PosterPath'); ?>
	</div>
        <?php if($model->isNewRecord!='1') ?>
        <div class="row">
                <?php echo CHtml::image(Yii::app()->request->baseUrl.'/data_posterMhs/'.$model->PosterPath,"image",array("width"=>200)); ?>  // Image shown here if page is update page
        </div>
        
        <div class="row"> 
                <b>Tag</b><br />
                1. <input type="text" name="tag_1" value="<?php if (isset($tag_1)) echo $tag_1; ?>"><br />
                2. <input type="text" name="tag_2" value="<?php if (isset($tag_2)) echo $tag_2; ?>"><br />
                3. <input type="text" name="tag_3" value="<?php if (isset($tag_3)) echo $tag_3; ?>"><br />
                4. <input type="text" name="tag_4" value="<?php if (isset($tag_4)) echo $tag_4; ?>"><br />
                5. <input type="text" name="tag_5" value="<?php if (isset($tag_5)) echo $tag_5; ?>">
        </div>
        
        <div class="row"> 
                <b>NIK : </b><br />
                <input type="text" name="dos_bing"  value="<?php if (isset($dos_bing)) echo $dos_bing; ?>">
        </div>
        
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->